//
//  FontAndColorMacros.h
//  TIMETOCOIN
//
//  Created by Helen on 2018/8/1.
//  Copyright © 2018年 Helen Technology Limited. All rights reserved.
//

//字体大小和颜色配置

#ifndef FontAndColorMacros_h
#define FontAndColorMacros_h
//~~~~~~~~~~~~~~~~~~~~~~~~宏定义定义尺寸~~~~~~~~~~~~~~~~~~~~~~~~
#define STRING_SIZE_FONT(_width_, _string_, _fsize_) [_string_ boundingRectWithSize:CGSizeMake(_width_, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName: [UIFont fontWithName:kFontNameLight size:_fsize_]} context:nil].size;

//颜色
#define KClearColor [UIColor clearColor]
#define KWhiteColor [UIColor whiteColor]
#define KOrangeColor [UIColor orangeColor]
#define KBlackColor [UIColor blackColor]
#define KGrayColor [UIColor grayColor]
#define KLightGrayColor [UIColor lightGrayColor]
#define KGreenColor [UIColor greenColor]
#define KBlueColor [UIColor blueColor]
#define KYellowColor [UIColor yellowColor]
#define KRedColor [UIColor redColor]
#define kColor_bg KColorOneAlpha(240, 239, 244)
//#define kRandomColor    KRGBColor(arc4random_uniform(256)/255.0,arc4random_uniform(256)/255.0,arc4random_uniform(256)/255.0)        //随机色生成
//颜色类
#define KRandomColor [UIColor colorWithRed:((float)arc4random_uniform(256) /255.0) green:((float)arc4random_uniform(256) /255.0) blue:((float)arc4random_uniform(256) /255.0) alpha:1.0]

// 颜色
#define KColor(r, g, b,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]

// alpha 为1 的颜色
#define KColorOneAlpha(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]

// 默认颜色
//#define DefaultBackGroundColor KColor(252,252,252,1)
#define DefaultBackGroundColor KColor(242,242,242,1)

//字体
#define BOLDSYSTEMFONT(FONTSIZE)[UIFont boldSystemFontOfSize:FONTSIZE]
#define SYSTEMFONT(FONTSIZE)    [UIFont systemFontOfSize:FONTSIZE]
#define FONT(NAME, FONTSIZE)    [UIFont fontWithName:(NAME) size:(FONTSIZE)]
//细字体
#define kFontNameLight @"NotoSansHans-Light"
//粗字体
#define kFontNameMedium @"NotoSansHans-Medium"
//斜字体
#define kFontNameRegular @"NotoSansHans-Regular"


#define CNavBgColor  [UIColor colorWithHexString:@"00AE68"]

//默认页面背景色
#define CViewBgColor [UIColor colorWithHexString:@"f2f2f2"]

//字体
#define BOLDSYSTEMFONT(FONTSIZE)[UIFont boldSystemFontOfSize:FONTSIZE]
#define SYSTEMFONT(FONTSIZE)    [UIFont systemFontOfSize:FONTSIZE]
#define FONT(NAME, FONTSIZE)    [UIFont fontWithName:(NAME) size:(FONTSIZE)]

#define TableViewBGColor KColorOneAlpha(247, 247, 247)
#define ImgDefulatColor   KColorOneAlpha(204, 204, 204)

#define Font_THEME_COLOR KColorOneAlpha(249, 75, 76)

// 商品退款字体颜色
#define FontColor79 KColorOneAlpha(79, 79, 79)
#define FontColor154 KColorOneAlpha(154, 153, 151)

#define RedColor249 KColorOneAlpha(249, 66, 65)

// 登录可点击的颜色
#define LoginBtnSelectedColor KColorOneAlpha(255, 146, 66)
#define LoginBtnNoSelectedColor KColorOneAlpha(250, 205, 137)


#define THEME_COLOR KColorOneAlpha(249, 75, 76)

#define LineColor KColorOneAlpha(243, 243, 243)


#define NightModeThemeColor KBlackColor

// 图片
#define  IMAGENAMED(name)    [UIImage imageNamed:name]

#endif /* FontAndColorMacros_h */
